package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cadre.common.utils.oldutil.PageUtils;
import com.cadre.system.domain.officer.A10;
import com.cadre.system.mapper.A10Mapper;
import com.cadre.system.service.A10Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("A10Service")
public class A10ServiceImpl extends ServiceImpl<A10Mapper, A10> implements A10Service {

    @Resource
    private A10Mapper a10Mapper;

    @Override // com.tdqy.cadre.modular.profess.service.A10Service
    public PageUtils queryPage(Map<String, Object> params) {
//        return new PageUtils(selectPage(new Query(params).getPage(), new EntityWrapper()));
        return new PageUtils(new Page<>());
    }

    @Override // com.tdqy.cadre.modular.profess.service.A10Service
    public List<A10> selectList(String personId) {
        LambdaQueryWrapper<A10> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(A10::getPersonid, personId);
        lambdaQueryWrapper.orderByAsc(A10::getSerial);
        return a10Mapper.selectList(lambdaQueryWrapper);
    }
}
